#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
  // 考试成绩统计案例

  // 1. 创建二维数组
  int scores[3][3] = {
      {100, 100, 100},
      {90, 50, 100},
      {60, 70, 80},
  };

  string names[3] = {"张三", "李四", "王五"};

  // 2. 统计每个人的总和分数
  for (int i = 0; i < 3; i++)
  {
    int sum = 0; // 统计分数总和
    for (int j = 0; j < 3; j++)
    {
      sum += scores[i][j];
    }
    cout << names[i] << "个人的总分为：" << sum << endl;
  }

  return 0;
}